package com.sinocare.project.pharmacy.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class SccDrugstoreDo implements Serializable {
    private static final long serialVersionUID = 5897456123929158040L;
    //主键，药店id
    @TableId(value = "store_id",type = IdType.AUTO)
    private Integer storeId;
    //店铺名称
    private String storeName;
    //店铺编码
    private String storeCode;
    //总店编号
    private String parentCode;
    //用户id
    private String userId;
    //省编号
    private Integer provinceCode;
    //省
    private String province;
    //市编号
    private Integer cityCode;
    //市
    private String city;
    //区/县编号
    private Integer countyCode;
    //区/县名称
    private String county;
    //详细地址
    private String addressDetall;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    //修改时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;
    //联系人
    private String name;
    //联系电话
    private String phone;
}
